checkbutton: Stop setting state flags on the style context for drawing
authorRui Matos <tiagomatos@gmail.com>
Thu, 15 Dec 2011 02:39:49 +0000 (02:39 +0000)
committerRui Matos <tiagomatos@gmail.com>
Mon, 19 Dec 2011 19:21:15 +0000 (19:21 +0000)
gtk/gtkcheckbutton.c

index ac1971453553f231c6c9e483dda61a6fb0fbb896..7f9f19eb17f28a61264393c85f6319ad696bd829 100644 (file)
@@ -179,7 +179,6 @@ gtk_check_button_paint (GtkWidget    *widget,
     {
       GtkWidget *child = gtk_bin_get_child (GTK_BIN (widget));
       GtkStyleContext *context;
-      GtkStateFlags state;
       GtkAllocation allocation;
       gint border_width;
       gint interior_focus;
@@ -196,9 +195,6 @@ gtk_check_button_paint (GtkWidget    *widget,
 
       gtk_widget_get_allocation (widget, &allocation);
       context = gtk_widget_get_style_context (widget);
-      state = gtk_widget_get_state_flags (widget);
-
-      gtk_style_context_set_state (context, state);
 
       if (interior_focus && child && gtk_widget_get_visible (child))
         {